package Test_0722;

/**
 * Created with Intellij IDEA
 * Description:
 * User: 星辰
 * Dare: 2024-07-22
 * Time: 14:15
 */
public class Dog extends Animal {
    public Dog() {
        super(2,"白白","白色");
        System.out.println("子类构造方法.......");
    }
    static{
        System.out.println("子类静态代码块");
    }
    {
        System.out.println("子类实例化代码块");
    }

    public void barks(){
        System.out.println(name+"汪汪叫~");
    }
}
